package com.hengby.hengcrud.core.util;

import com.hengby.hengcrud.config.properties.HengCrudProperties;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;

/**
 * 验证码工具类
 */
public class KaptchaUtil {

    /**
     * 获取验证码开关
     */
    public static Boolean getKaptchaOnOff() {
        return SpringContextHold.getBean(HengCrudProperties.class).getKaptchaOpen();
    }
}